home *** CD-ROM | disk | FTP | other *** search
/ Practical Algorithms for Image Analysis / Practical Algorithms for Image Analysis.iso / TARFILE.GZ / tarfile / libtiff / tools / Makefile.lcc < prev    next >
Encoding:
Makefile  |  1999-09-11  |  4.1 KB  |  133 lines

  1. # $Header: /usr/people/sam/tiff/tools/RCS/Makefile.lcc,v 1.4 1996/01/10 19:35:26 sam Rel $
  2. #
  3. # TIFF Library Tools
  4. #
  5. # Copyright (c) 1988-1996 Sam Leffler
  6. # Copyright (c) 1991-1996 Silicon Graphics, Inc.
  7. # Permission to use, copy, modify, distribute, and sell this software and 
  8. # its documentation for any purpose is hereby granted without fee, provided
  9. # that (i) the above copyright notices and this permission notice appear in
  10. # all copies of the software and related documentation, and (ii) the names of
  11. # Sam Leffler and Silicon Graphics may not be used in any advertising or
  12. # publicity relating to the software without the specific, prior written
  13. # permission of Stanford and Silicon Graphics.
  14. # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, 
  15. # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY 
  16. # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.  
  17. # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
  18. # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
  19. # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  20. # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF 
  21. # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 
  22. # OF THIS SOFTWARE.
  23. #
  24. NULL=
  25. IPATH=    -I..\libtiff
  26. #
  27. # If you don't want the public domain getopt code, then
  28. # simply null this out and you'll get whatever is in your
  29. # libc (or similar).
  30. #
  31. GETOPT=    getopt.o
  32. #
  33. # Library-wide configuration defines:
  34. # Note that if you change the library-wide configuration, you'll
  35. # need to manual force a full rebuild. 
  36. #
  37. CONF_LIBRARY=\
  38.     ${NULL}
  39. COPTS=    -Oloop -cwagshf -d1 -b0 -v -DNDEBUG -rr -j135i
  40. CFLAGS=    ${COPTS} ${IPATH} -DBINMODE='"b"'
  41. #
  42. LIBTIFF=..\libtiff\tiffrnb.lib
  43. LIBS=    -l${LIBTIFF} -lm
  44. MACHALL=ras2tiff.ttp
  45. OBJS=\
  46.     fax2tiff.o \
  47.     gif2tiff.o \
  48.     pal2rgb.o \
  49.     ppm2tiff.o \
  50.     rgb2ycbcr.o \
  51.     tiff2bw.o \
  52.     tiff2ps.o \
  53.     tiffcmp.o \
  54.     tiffcp.o \
  55.     tiffdither.o \
  56.     tiffdump.o \
  57.     tiffinfo.o \
  58.     tiffmedian.o \
  59.     tiffsplit.o \
  60.     ras2tiff.o \
  61.     ${GETOPT} \
  62.     ${NULL}
  63. ALL=\
  64.     fax2tiff.ttp \
  65.     gif2tiff.ttp \
  66.     pal2rgb.ttp \
  67.     ppm2tiff.ttp \
  68.     rgb2ycbcr.ttp \
  69.     tiff2bw.ttp \
  70.     tiff2ps.ttp \
  71.     tiffcmp.ttp \
  72.     tiffcp.ttp \
  73.     tiffdither.ttp \
  74.     tiffdump.ttp \
  75.     tiffinfo.ttp \
  76.     tiffmedian.ttp \
  77.     tiffsplit.ttp \
  78.     ${MACHALL} \
  79.     ${NULL}
  80.  
  81. all:    ${ALL}
  82.  
  83. tiffinfo.ttp: tiffinfo.c ${GETOPT} ${LIBTIFF}
  84.     ${CC} -o tiffinfo.ttp ${CFLAGS} tiffinfo.c ${GETOPT} ${LIBS}
  85. tiffcmp.ttp: tiffcmp.c ${GETOPT} ${LIBTIFF}
  86.     ${CC} -o tiffcmp.ttp ${CFLAGS} tiffcmp.c ${GETOPT} ${LIBS}
  87. tiffcp.ttp:   tiffcp.c ${LIBTIFF}
  88.     ${CC} -o tiffcp.ttp ${CFLAGS} tiffcp.c ${LIBS}
  89. tiffdump.ttp: tiffdump.c
  90.     ${CC} -o tiffdump.ttp ${CFLAGS} tiffdump.c -lm ${LIBS}
  91. tiffmedian.ttp: tiffmedian.c ${LIBTIFF}
  92.     ${CC} -o tiffmedian.ttp ${CFLAGS} tiffmedian.c ${LIBS}
  93. tiffsplit.ttp: tiffsplit.c ${LIBTIFF}
  94.     ${CC} -o tiffsplit.ttp ${CFLAGS} tiffsplit.c ${LIBS}
  95. tiff2ps.ttp: tiff2ps.c ${LIBTIFF}
  96.     ${CC} -o tiff2ps.ttp ${CFLAGS} tiff2ps.c ${LIBS}
  97. # junky stuff...
  98. # convert RGB image to B&W
  99. tiff2bw.ttp: tiff2bw.c ${GETOPT} ${LIBTIFF}
  100.     ${CC} -o tiff2bw.ttp ${CFLAGS} tiff2bw.c ${GETOPT} ${LIBS}
  101. # convert B&W image to bilevel w/ FS dithering
  102. tiffdither.ttp: tiffdither.c ${LIBTIFF}
  103.     ${CC} -o tiffdither.ttp ${CFLAGS} tiffdither.c ${LIBS}
  104. # Group 3 FAX file converter
  105. fax2tiff.ttp: fax2tiff.c ${GETOPT} ${LIBTIFF}
  106.     ${CC} -o fax2tiff.ttp ${CFLAGS} ${CONF_LIBRARY} fax2tiff.c ${GETOPT} ${LIBS}
  107. # convert Palette image to RGB
  108. pal2rgb.ttp: pal2rgb.c ${LIBTIFF}
  109.     ${CC} -o pal2rgb.ttp ${CFLAGS} pal2rgb.c ${LIBS}
  110. # convert RGB image to YCbCr
  111. rgb2ycbcr.ttp: rgb2ycbcr.c ${GETOPT} ${LIBTIFF}
  112.     ${CC} -o rgb2ycbcr.ttp ${CFLAGS} rgb2ycbcr.c ${GETOPT} ${LIBS}
  113. # GIF converter
  114. gif2tiff.ttp: gif2tiff.c ${LIBTIFF}
  115.     ${CC} -o gif2tiff.ttp ${CFLAGS} gif2tiff.c ${LIBS}
  116. # PBM converter
  117. ppm2tiff.ttp: ppm2tiff.c ${LIBTIFF}
  118.     ${CC} -o ppm2tiff.ttp ${CFLAGS} ppm2tiff.c ${LIBS}
  119. # Sun rasterfile converter
  120. ras2tiff.ttp: ras2tiff.c ${LIBTIFF}
  121.     ${CC} -o ras2tiff.ttp ${CFLAGS} ras2tiff.c ${LIBS}
  122. # generate thumbnail images from fax
  123. thumbnail: thumbnail.c ${LIBTIFF}
  124.     ${CC} -o thumbnail ${CFLAGS} thumbnail.c ${LIBS} -lm
  125.  
  126. install: all
  127.  
  128. clean:
  129.     rm -f ${ALL} ${OBJS} ycbcr.ttp
  130.